package cn.cau.dao;

import cn.cau.entity.BasicEnum;
import cn.cau.entity.BasicEnumSum;
import cn.cau.entity.Options;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BasicEnumDao {
    public int insertBasicEnum(BasicEnum basicEnum);

    public List<BasicEnum> findBasicEnumByCodeRuleId(int codeRuleId);

    public List<BasicEnumSum> findBasicEnumSumByCodeRuleId(int codeRuleId);

    public List<Options> findAllEnumByCodeId(int id);

    //public List<List<BasicEnum>> findBasicEnumSByCodeRuleId(int codeRuleId);
    public int findBasicEnumNumByCodeCodeId(@Param("codeRuleId") int codeRuleId, @Param("count")  int count);

    public List<BasicEnum> findBasicEnumByCodeIdAndPos(@Param("codeId") int codeId,@Param("pos") int pos);

    public BasicEnum findBasicEnumByCodeRuleIdAndCount(@Param("codeRuleId") int codeRuleId,@Param("count1")int count1,@Param("count2") int count2);

    public BasicEnum findBasicEnumByRuleIdCodeIdEnumeration(@Param("codeId") int codeId,@Param("codeCodeId") int codeCodeId,@Param("basicEnum") String basicEnum);
}
